# Contributor: Leo <thinkabit.ukim@gmail.com>
# Maintainer:
pkgname=py3-xmltodict
_realname=xmltodict
pkgver=0.12.0
pkgrel=1
pkgdesc="an xmltodict implementation"
url="https://pypi.python.org/pypi/xmltodict/"
arch="noarch"
license="MIT"
depends="python3"
makedepends="py3-setuptools"
checkdepends="py3-nose py3-coverage"
source="$pkgname-$pkgver.tar.gz::https://github.com/martinblech/$_realname/archive/v$pkgver.tar.gz"
builddir="$srcdir/$_realname-$pkgver"

replaces="py-xmltodict" # Backward compat
provides="py-xmltodict=$pkgver-r$pkgrel" # Backward compat

build() {
	python3 setup.py build
}

check() {
	nosetests
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="baab65299134f3daec05e6c1d9cbb80343cc89f7d1fee2fd3be2bba0bc5c7dd78dcc72abd8cb721edd0c9504eab2d9e4135618237b54a85809dc0cf42b6f7616  py3-xmltodict-0.12.0.tar.gz"
